package cn.fboost.mtos.dto.request;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 订单评价请求
 */
@Data
public class OrderRateRequest {
    @NotBlank(message = "订单号不能为空")
    private String tradeNo;

    @NotNull(message = "评分不能为空")
    @Min(value = 1, message = "评分不能小于1")
    @Min(value = 5, message = "评分不能大于5")
    private Integer rate;
    private String comment;
}
